<template>
	<view class="more_info">
		<view class="more_in_item" v-for="(item,index) in moreList" :key="index" @click="moreInfoClick(index)">
			<view>{{item.title}}</view>
			<view class="item_num">
				<view>{{item.num}}</view>
				<view class="iconfont icon-arrows_right"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		props: {
			moreList: {
				type: Array,
				default () {
					return []
				}
			},
			indexMore: {
				type: Number,
				default () {
					return 0
				}
			}
		},
		methods: {
			moreInfoClick(e) {
				if (this.indexMore === 1) {
					switch (e) {
						case 0:
							uni.navigateTo({
								url: '/pagesA/crm/linkman/linkman'
							});
							break;
						case 1:
							
							break;
						case 2:
							
							break;
						case 6:
							
							break;
						case 7:
							
							break;
					}
				}else if(this.indexMore === 2) {
					switch(e) {
						case 0:
							uni.navigateTo({
								url: '/pagesA/crm/linkman/linkman'
							});
							break;
						case 1:
							uni.navigateTo({
								url: '/pagesA/index/groupCompany/callRecord/callRecord'
							});
							break;
						case 2:
							uni.navigateTo({
								url: '/pagesA/index/groupCompany/operationLog/operationLog'
							});
							break;
					}
				}
			}
		},
	}
</script>

<style lang="scss">
	.more_info {
		padding: 10rpx 30rpx;
		margin-bottom: 150rpx;

		.more_in_item {
			display: flex;
			justify-content: space-between;
			height: 80rpx;
			line-height: 80rpx;
			background-color: #fff;
			padding: 0 32rpx;
			margin: 20rpx 0;

			.item_num {
				display: flex;

				:first-child {
					color:#03aa96;
				}
			}
		}
	}
</style>
